<!--{*
/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
*}-->

<div id="alpha">
<div id="alpha-inner">
<!--▼SUB NAVI-->
<!--{include file=$tpl_subnavi}-->
<!--▲SUB NAVI-->
</div>
</div>



<div id="beta">
<div id="beta-inner">
<form name="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->"  enctype="multipart/form-data">
<input type="hidden" name="mode" value="">
<input type="hidden" name="now_file" value="<!--{$tpl_now_dir}-->">
<input type="hidden" name="tree_select_file" value="">
<input type="hidden" name="tree_status" value="">
<input type="hidden" name="select_file" value="">

<div class="title_page">
<h2><!--{$tpl_subtitle}--></h2>
</div>



<div class="menuclass">
<table summary="<!--{$tpl_subtitle}-->">
<tr>
	<td>ディレクトリ</td>
	<td><div id="now_dir">
		<img src="<!--{$TPL_DIR}-->img/admin/contents/folder_open.gif" alt="フォルダ" />
		&nbsp;<!--{$tpl_now_file}-->
		</div>
	</td>
</tr>
<tr>
	<td><div id="tree"></div></td>
	<td><span class="red"><!--{$arrErr.select_file}--></span>
		<div id="file_view">
		<table summary="<!--{$tpl_subtitle}-->">
		<tr>
			<td>ファイル名</td>
			<td align="right">サイズ</td>
			<td>更新日付</td>
		</tr>
		<!--{if !$tpl_is_top_dir}-->
		<tr id="parent_dir" onclick="fnSetFormVal('form1', 'select_file', '<!--{$tpl_parent_dir|escape}-->');fnSelectFile('parent_dir', '#808080');" onDblClick="setTreeStatus('tree_status');fnDbClick(arrTree, '<!--{$tpl_parent_dir|escape}-->', true, '<!--{$tpl_now_dir|escape}-->', true)" style="" onMouseOver="fnChangeBgColor('parent_dir', '#808080');" onMouseOut="fnChangeBgColor('parent_dir', '');">
			<td>
			<img src="<!--{$TPL_DIR}-->img/admin/contents/folder_parent.gif" alt="フォルダ" />&nbsp;..
			</td>
			<td align="right"></td>
			<td></td>
		</tr>
		<!--{/if}-->
			<!--{section name=cnt loop=$arrFileList}-->
			<!--{assign var="id" value="select_file`$smarty.section.cnt.index`"}-->
			<tr id="<!--{$id}-->" onclick="fnSetFormVal('form1', 'select_file', '<!--{$arrFileList[cnt].file_path|escape}-->');fnSelectFile('<!--{$id}-->', '#808080');" onDblClick="setTreeStatus('tree_status');fnDbClick(arrTree, '<!--{$arrFileList[cnt].file_path|escape}-->', <!--{if $arrFileList[cnt].is_dir|escape}-->true<!--{else}-->false<!--{/if}-->, '<!--{$tpl_now_dir|escape}-->', false)" style="" onMouseOver="fnChangeBgColor('<!--{$id}-->', '#808080');" onMouseOut="fnChangeBgColor('<!--{$id}-->', '');">
				<td>
				<!--{if $arrFileList[cnt].is_dir}-->
				<img src="<!--{$TPL_DIR}-->img/admin/contents/folder_close.gif" alt="フォルダ" />
				<!--{else}-->
				<img src="<!--{$TPL_DIR}-->img/admin/contents/file.gif" />
				<!--{/if}-->
				<!--{$arrFileList[cnt].file_name|escape}-->
				</td>
				<td align="right"><!--{$arrFileList[cnt].file_size|number_format}--></td>
				<td><!--{$arrFileList[cnt].file_time|escape}--></td>
			</tr>
			<!--{/section}-->
		</table>
		<!-- /file_view --></div>

		<div class="btn_box">
		<input type="button" onclick="setTreeStatus('tree_status');fnModeSubmit('view','',''); return false;" value="表示">
		<input type="button" onclick="setTreeStatus('tree_status');fnModeSubmit('download','',''); return false;" value="ダウンロード">
		<input type="button" onclick="setTreeStatus('tree_status');fnModeSubmit('delete','',''); return false;" value="削除">
		</div>

	</td>
</tr>
</table>
</div>



<h3>現在のディレクトリ&nbsp;：&nbsp;<!--{$tpl_now_dir|sfTrimURL}-->/</h3>

<div class="menuclass">
<dl>
<dt>ファイルのアップロード</dt>
<dd>
	<span class="red"><!--{$arrErr.upload_file}--></span>
	<input type="file" name="upload_file" size="64" <!--{if $arrErr.upload_file}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->>
	<input type="button" onclick="setTreeStatus('tree_status');fnModeSubmit('upload','',''); return false;" value="アップロード">
</dd>
<dt>フォルダ作成</dt>
<dd>
	<span class="red"><!--{$arrErr.create_file}--></span>
	<input type="text" name="create_file" value="" style="width:336px;<!--{if $arrErr.create_file}--> background-color:<!--{$smarty.const.ERR_COLOR|escape}--><!--{/if}-->">
	<input type="button" onclick="setTreeStatus('tree_status');fnModeSubmit('create','',''); return false;" value="作成">
</dd>
</dl>
</div>
</form>

</div>
</div>
